package com.wangrui.quartz.schedule;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class QuartzJob extends QuartzJobBean {
    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        String jobData = (String)context.getJobDetail().getJobDataMap().get("jobData");
        System.out.println("QuartzJob任务被执行,jobData=" + jobData);
    }
}
